package com.qdlc.p2p.dal.model;

import org.springframework.beans.BeanUtils;

import com.qdlc.p2p.common.util.Page;
import com.qdlc.p2p.dal.dto.ScoreLotteryRecord;

/**
 * 积分抽奖记录model
 * @author xxx
 * @version 2.0
 * @date 2015年6月15日 下午5:01:27
 */
public class ScoreLotteryRecordModel extends ScoreLotteryRecord {
	
	/** 积分抽奖获奖名单显示条数 */
	public static final int SCORELOTTERYRECORD_NEWLIST_SIZE = 30;
	
	/** 当前页数 **/
	private int page;
	
	/** 分页数 **/
	private int rows = Page.ROWS;

	/** 条件查询 **/
	private String searchName;
	
	/** 用户名 */
	private String userName;
	
	/** 用户真实姓名 */
	private String realName;
	
	/** 开始时间 **/
	private String startTime;
	
	/** 结束时间 **/
	private String endTime;
	
    public static ScoreLotteryRecordModel instance(ScoreLotteryRecord item) {
    	ScoreLotteryRecordModel model = new ScoreLotteryRecordModel();
        BeanUtils.copyProperties(item, model);
        return model;
    }

    public ScoreLotteryRecord prototype() {
    	ScoreLotteryRecord item = new ScoreLotteryRecord();
        BeanUtils.copyProperties(this, item);
        return item;
    }

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
    
}
